package com.hu.zhcc.shiro.service.xsx;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hu.zhcc.shiro.dao.xsx.TSetmealCheckitemMapper;
import com.hu.zhcc.shiro.entity.xsx.XsxTSetmealCheckitem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xsx
 * @since 2021-06-18
 */
@Service
public class TSetmealCheckitemServiceImpl extends ServiceImpl<TSetmealCheckitemMapper, XsxTSetmealCheckitem> implements TSetmealCheckitemService {
    @Autowired
    TSetmealCheckitemMapper tSetmealCheckitemMapper;

    @Override
    public int addSetmealCheckitem(XsxTSetmealCheckitem tSetmealCheckitem) {
        return tSetmealCheckitemMapper.addSetmealCheckitem(tSetmealCheckitem);
    }

    @Override
    public List<XsxTSetmealCheckitem> queryItem(int id) {
        return tSetmealCheckitemMapper.queryItem(id);
    }

    @Override
    public int delBySetmealId(int id) {
        return tSetmealCheckitemMapper.delBySetmealId(id);
    }
}
